Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

BUILD: add _distributor_init.py to preload dll on windows #50

Merged
merged 1 commit into from
Jun 15, 2019

Conversation

mattip
Copy link
Contributor

@mattip mattip commented Jun 13, 2019

Part of the fix for numpy/numpy#13764, the other part (removing code from numpy/core/__init__.py and duplicating this code there) has to be done in the numpy repo after this is merged in order to reuse openblas_support.py from here.

This creates a _distributor_local.py file which is packaged with the wheel (on windows only).

I named the new file openblas_support.py in the hope that we can add some of the environment variables to it which might unify some of the travis/appveyor/future azure/ CI behaviour

@mattip mattip requested a review from rgommers June 13, 2019 07:29
@mattip
Copy link
Contributor Author

mattip commented Jun 13, 2019

Fixes #49

Copy link
Contributor

@rgommers rgommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to do the job. One question though, why not just name this file _distributor_init.py or _distributor_init_windows.py, and just copy it into place? Seems simpler and easier to extend than this file writing from another file.

@mattip
Copy link
Contributor Author

mattip commented Jun 15, 2019

It seemed easier to just copy-paste the code from numpy. I also intend to extend this to handle all the OpenBlas setup (download, unzip, set up so numpy can find it) in one place rather than in each CI yaml file. This can be then reused by the numpy CI, see numpy/numpy#13772

@rgommers
Copy link
Contributor

Okay thanks @mattip. You're doing the work, so let's go with your preference:)

@rgommers rgommers merged commit 50eaabd into MacPython:master Jun 15, 2019
@rgommers rgommers changed the title BUILD: add _distributor_local.py to preload dll on windows BUILD: add _distributor_init.py to preload dll on windows Feb 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants